<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-wcs__locate}">
      <wcs-form 
        v-model="dataForm"
        :formList="formList"
        :table-column="tableColumn"
        :advanced="advanced"
        @check-change="checkChange"
        @changeAdvance="changeAdvance"
        @getDataList="getDataList"
        @getReset="getReset"
      >
      </wcs-form>
      <wcs-table
        ref="wcsTable"
        v-model="dataForm"
        :page="page"
        :total="total"
        :limit="limit"
        :tableData="dataList"
        :table-column="column"
        :module-options="mixinViewModuleOptions"
        :dataListLoading="dataListLoading"
        :showSelection="true"
        @pageSizeChangeHandle="pageSizeChangeHandle"
        @pageCurrentChangeHandle="pageCurrentChangeHandle"/>
    </div>
  </el-card>
</template>

<script>
import mixinViewModule from "@/mixins/view-module";
import debounce from "lodash/debounce";
import { formList, tableColumn } from './config'
import wcsTable from '@/components/wcs-table'
import wcsForm from '@/components/wcs-form'
export default {
  mixins: [mixinViewModule],
  data() {
    return {
      mixinViewModuleOptions: {
        getDataListURL: "/wcs/route-set/page",
        getDataListIsPage: true,
        deleteURL: "/wcs/route-set",
      },
      dataForm: {
        curStn: '',
        toStn: '',
      },
      formList,
      tableColumn,
      column: [],
      advanced: false
    };
  },
  components: {
    wcsTable,
    wcsForm
  },
  methods: {
    //0.重置搜索框
    getReset() {
      this.dataForm = this.$options.data().dataForm;
    }
  },
};
</script>
<style>
.right-handle-group {
  float: right;
}
</style>


